import random

# 生成一个 范围在 1-10的随机数
answer = random.randint(1, 10)
counts = 3
while counts > 0:
    # 用户输入的字符串赋值给变量 temp
    temp = input("不妨猜一下小甲鱼现在心里想的是哪个数字：")
    # 通过 int 函数把字符串转换为 数字4
    guess = int(temp)
    counts = counts - 1

    if guess == answer:
        print("你是小甲鱼心里的蛔虫吗？！")
        print("哼，猜中了也没奖励！")
        break
    else:
        if guess < answer:
            print("小啦～")
        else:
            print("大啦～")

print("游戏结束，不玩啦^_^")
